package com.quectel.core.module.device.dto;

import com.quectel.core.module.alarm.dto.AlarmRuleDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备当前告警
 *
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2019-06-14 15:14:16
 */
@Data
public class DeviceCurrentAlarmDto implements Serializable {

    /**
     *
     */
    private Long id;

    @Schema(description = "imei")
    private String imei;

    @Schema(description = "租户id")
    private Long tenantId;

    @Schema(description = "设备id")
    private Long deviceId;

    @Schema(description = "种类id")
    private Long deviceCategoryId;

    @Schema(description = "类型id")
    private Long deviceTypeId;

    @Schema(description = "小区id")
    private Long villageId;

    @Schema(description = "楼栋id")
    private Long buildingId;

    @Schema(description = "规则id")
    private Long ruleId;

    @Schema(description = "告警详情")
    private String alarmDetailJson;

    @Schema(description = "接收的数据")
    private String recData;

    @Schema(description = "告警时间")
    private Date alarmTime;

    /************非数据库字段 start ************/

    @Schema(description = "告警规则")
    private AlarmRuleDto alarmRule;

    @Schema(description = "设备种类")
    private DeviceCategoryDto deviceCategory;

    @Schema(description = "设备类型")
    private DeviceTypeDto deviceType;

    @Schema(description = "设备")
    private DeviceDto device;
    /************非数据库字段 end **************/


}
